home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / msk.xml < prev    next >
Text File  |  2002-09-24  |  2KB  |  57 lines

  1. <search function="msk">
  2.   <name>Microsoft Knowledge Base</name>
  3.   <description>
  4.     Search the Microsoft Knowledge Base using either a regular search expression or a 6-digit "Q" code.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/google</td><td> - </td><td>Use Google to search support.microsoft.com</td></tr>
  8.     </table>
  9.     <div class="helpboxDescLabels">Examples:</div>
  10.     <table class="helpboxDescTable">
  11.       <tr><td>msk Windows Bugs</td></tr>
  12.       <tr><td>msk q252795</td></tr>
  13.       <tr><td>msk Windows Bugs /google</td></tr>
  14.       <tr><td>msk q252795 /google</td></tr>
  15.     </table>
  16.   </description>
  17.   <category>Computers</category>
  18.   <link>http://support.microsoft.com/default.aspx?scid=fh;en-us;kbinfo</link>
  19.   <contributor>Ryan Edwards, MLL</contributor>
  20.  
  21.   <form name="mskggf"
  22.         action="http://www.google.com/search"
  23.         method="get">
  24.     <input type="hidden" name="q"/>
  25.   </form>
  26.  
  27.   <script><![CDATA[
  28.     function msk(q)
  29.     {
  30.       var args = parseArgs(q, "google");
  31.       var res;
  32.       if( nullArgs("msk",args.q) )
  33.         return false;
  34.       else if( args.switches.length > 1 )
  35.       {
  36.         nullArgs("msk","?");
  37.         return false;
  38.       }
  39.       else if( args.switches.length == 1 && args.switches[0].name == "google" )
  40.       {
  41.         document.mskggf.q.value = args.q + " site:support.microsoft.com";
  42.         submitForm(mskggf);
  43.       }
  44.       else if( (res = q.match(/^\s*[qQ]?(\d{6})\s*$/ )) != null )
  45.         openSearchWindow('http://support.microsoft.com/default.aspx?scid=kb;en-us;'+ "Q" + res[1]);
  46.       else
  47.         openSearchWindow('http://search.support.microsoft.com/search/default.aspx?Catalog=LCID%3D1033%26CDID%3DEN-US-KB%26PRODLISTSRC%3DON&Product=msall&Query=' + q.replace( /\s+/g,'%2520' ) + '&Queryc=' + q.replace( /\s+/g,'+' ) + '&withinResults=false&srchstep=0&KeywordType=ALL&Titles=false&numDays=&maxResults=25');
  48.     }
  49.   ]]></script>
  50.  
  51.   <copyright>
  52.     Copyright (c) 2002 David Bau
  53.     Distributed under the terms of the
  54.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  55.   </copyright>
  56. </search>
  57.